#ifndef SMMOVEBUTTON_H
#define SMMOVEBUTTON_H

#include <QEvent>
#include <QMouseEvent>
#include <QObject>
#include <QPaintDevice>
#include <QPoint>
#include <QPushButton>
#include <QWidget>

class smMoveButton : public QPushButton {
  Q_OBJECT
public:
  explicit smMoveButton(QWidget *parent = nullptr);

protected:
  void mousePressEvent(QMouseEvent *event);
  void mouseMoveEvent(QMouseEvent *event);
  void keyPressEvent(QKeyEvent *event);

private:
  QPoint startPos;
  QPoint stopPos;
};

#endif // SMMOVEBUTTON_H
